﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;

namespace CoolCode.Bracket.LinqToSql.Entities
{
    [Table(Name = "dbo.sys_MenuInUser")]
    public partial class MenuInUser : EntityBase
    {
        private int _iD;

        [Column(DbType = "Int NOT NULL IDENTITY ", IsPrimaryKey = true, IsDbGenerated = true)]
        public int ID
        {
            get { return _iD; }
            set { _iD = value; }
        }

        private int _menuID;

        [Column(CanBeNull = false)]
        public int MenuID
        {
            get { return _menuID; }
            set { _menuID = value; }
        }

        private string _userName;

        [Column(CanBeNull = false)]
        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        private short _authority;

        [Column(CanBeNull = false)]
        public short Authority
        {
            get { return _authority; }
            set { _authority = value; }
        }

    }            
}
